diff --git a/modules/hs_taxonomy.module b/modules/hs_taxonomy.module
index 63a4c08..9a8ae93 100644
--- a/modules/hs_taxonomy.module
+++ b/modules/hs_taxonomy.module
@@ -651,7 +651,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();
   }
 
