fixed null child bug