fix getChildren method