fix menu tree problem with missing has_child class