added child count before adding option dropdown

Following up on an anomaly Dan QaDan found.