fix center of mass