prevent crash in getChildren