fixed mayhavechildren for model