fixed problem in updateKinematics

Now iterates over the names of children instead of over the children
themselves