Fix typo in children_of_type method