switch initialDelay and period
diff --git a/org.eclipse.scada.da.datasource.script/src/org/eclipse/scada/da/datasource/script/ScriptDataSource.java b/org.eclipse.scada.da.datasource.script/src/org/eclipse/scada/da/datasource/script/ScriptDataSource.java
index 4bdce5e..b8171e7 100644
--- a/org.eclipse.scada.da.datasource.script/src/org/eclipse/scada/da/datasource/script/ScriptDataSource.java
+++ b/org.eclipse.scada.da.datasource.script/src/org/eclipse/scada/da/datasource/script/ScriptDataSource.java
@@ -148,7 +148,7 @@
             final Map<?, ?> map = (Map<?, ?>)result;
             for ( final Map.Entry<?, ?> entry : map.entrySet () )
             {
-                if ( entry.getKey () instanceof String && entry.getValue () instanceof WriteAttributeResult )
+                if ( ( entry.getKey () instanceof String ) && ( entry.getValue () instanceof WriteAttributeResult ) )
                 {
                     r.put ( (String)entry.getKey (), (WriteAttributeResult)entry.getValue () );
                 }
@@ -245,7 +245,7 @@
             {
                 handleTimer ();
             }
-        }, period, getBoolean ( SYS_PROP_BASE + "usePeriodAsInitial" ) ? period : 0L, TimeUnit.MILLISECONDS );
+        }, getBoolean ( SYS_PROP_BASE + "usePeriodAsInitial" ) ? period : 0L, period, TimeUnit.MILLISECONDS );
     }
 
     private void stopTimer ()
@@ -306,7 +306,7 @@
 
     private ScriptExecutor makeScript ( final ScriptEngine engine, final String string ) throws Exception
     {
-        if ( string == null || string.isEmpty () )
+        if ( ( string == null ) || string.isEmpty () )
         {
             return null;
         }