fixed a bug in rotation that causes too fast rotation speed