Fix error when not having childs