fix error with no children