avoid nil max_children