fix a BUG。

In teach mode, when we rotate too fast. the application will crash. fix
it now.