Fixed bug of getChildren method