diff --git a/jquery_msg_alert.module b/jquery_msg_alert.module
index 36c046e..4ae9357 100644
--- a/jquery_msg_alert.module
+++ b/jquery_msg_alert.module
@@ -61,7 +61,7 @@ function jquery_msg_alert_admin_settings() {
     '#title' => t('Select the types of Drupal messages to convert'),
     '#default_value' => variable_get('jquery_msg_alert_types', array('status', 'error', 'warning')),
     '#options' => array('status' => t('Status message'), 'error' => t('Error message'), 'warning' => t('Warning message')),
-  );
+ );
   $form['jquery_msg_alert']['jquery_msg_alert_path'] = array(
     '#type' => 'textfield',
     '#title' => t('jQuery UI library path'),
@@ -158,9 +158,11 @@ function jquery_msg_alert_admin_settings() {
     '#default_value' => variable_get('jquery_msg_alert_initial_space_height', JQUERY_MSG_ALERT_INITIAL_SPACE_HEIGHT),
     '#description' => t('The space from the bottom of the page.')
   );
+  
   drupal_set_message(t('Error alert example.'), 'error');
   drupal_set_message(t('Warning alert example.'), 'warning');
   drupal_set_message(t('Status alert example.'), 'status');
+
   return system_settings_form($form);
 }
 
@@ -173,19 +175,19 @@ if (user_access('view alerts')) {
     drupal_add_js(drupal_get_path('module', 'jquery_msg_alert') . '/jquery_msg_alert.js');
     drupal_add_js(array('jquery_msg_alert' => array(
       'types' => variable_get('jquery_msg_alert_types', array('status', 'error', 'warning')),
-      'alertWidth' => variable_get('jquery_msg_alert_width', JQUERY_MSG_ALERT_WIDTH),
-      'alertHeight' => variable_get('jquery_msg_alert_height', JQUERY_MSG_ALERT_HEIGHT),
-      'autoClose' => variable_get('jquery_msg_alert_auto_close', JQUERY_MSG_ALERT_AUTO_CLOSE),
-      'wait' => variable_get('jquery_msg_alert_wait', JQUERY_MSG_ALERT_WAIT),
-      'closeTime' => variable_get('jquery_msg_alert_close_time', JQUERY_MSG_ALERT_CLOSE_TIME),
-      'intervalTime' => variable_get('jquery_msg_alert_interval_time', JQUERY_MSG_ALERT_INTERVAL_TIME),
-      'cssPosition' => variable_get('jquery_msg_alert_css_position', JQUERY_MSG_ALERT_CSS_POSITION),
-      'cssRight' => variable_get('jquery_msg_alert_right', JQUERY_MSG_ALERT_CSS_RIGHT),
+      'alertWidth' => (int)variable_get('jquery_msg_alert_width', JQUERY_MSG_ALERT_WIDTH),
+      'alertHeight' => (int)variable_get('jquery_msg_alert_height', JQUERY_MSG_ALERT_HEIGHT),
+      'autoClose' => (int)variable_get('jquery_msg_alert_auto_close', JQUERY_MSG_ALERT_AUTO_CLOSE),
+      'wait' => (int)variable_get('jquery_msg_alert_wait', JQUERY_MSG_ALERT_WAIT),
+      'closeTime' => (int)variable_get('jquery_msg_alert_close_time', JQUERY_MSG_ALERT_CLOSE_TIME),
+      'intervalTime' => (int)variable_get('jquery_msg_alert_interval_time', JQUERY_MSG_ALERT_INTERVAL_TIME),
+      'cssPosition' => (int)variable_get('jquery_msg_alert_css_position', JQUERY_MSG_ALERT_CSS_POSITION),
+      'cssRight' => (int)variable_get('jquery_msg_alert_right', JQUERY_MSG_ALERT_CSS_RIGHT),
       'alertTitleDefault' => variable_get('jquery_msg_alert_title', JQUERY_MSG_ALERT_TITLE),
       'alertContentDefault' => variable_get('jquery_msg_alert_content', JQUERY_MSG_ALERT_CONTENT),
       'className' => variable_get('jquery_msg_alert_class', JQUERY_MSG_ALERT_CLASS),
-      'interSpaceHeight' => variable_get('jquery_msg_alert_inter_space_height', JQUERY_MSG_ALERT_INTER_SPACE_HEIGHT), 
-      'initialSpaceHeight' => variable_get('jquery_msg_alert_initial_space_height', JQUERY_MSG_ALERT_INITIAL_SPACE_HEIGHT), 
+      'interSpaceHeight' => (int)variable_get('jquery_msg_alert_inter_space_height', JQUERY_MSG_ALERT_INTER_SPACE_HEIGHT), 
+      'initialSpaceHeight' => (int)variable_get('jquery_msg_alert_initial_space_height', JQUERY_MSG_ALERT_INITIAL_SPACE_HEIGHT), 
     )), 'setting');
   }
 }
