fixed iOS crash when touching and rotating