Fixed physics bugs