fixing physics bugs