fixed RotatedShape bug