fixed rotation bug when hitting 360