fix some physics bugs.