Fix error with each_child on 1.8.7