diff --git a/modules/hs_taxonomy.module b/modules/hs_taxonomy.module
index 2fc3fb4..fd46105 100644
--- a/modules/hs_taxonomy.module
+++ b/modules/hs_taxonomy.module
@@ -604,7 +604,7 @@ function hs_taxonomy_hierarchical_select_root_level($params) {
  * Implementation of hook_hierarchical_select_children().
  */
 function hs_taxonomy_hierarchical_select_children($parent, $params) {
-  if (isset($params['root_term']) && $params['root_term'] && $parent == 0) {
+  if (( isset($params['root_term']) && $params['root_term'] && $parent == 0 ) || !is_numeric($parent) ) {
     return array();
   }
 
