fixed bug in getChildren()