fix pivot point bug