Fixed bug in updatebodies.