Issue #4986: Fix a bug that repeat rotation error

Issue #4986: Fix a bug that repeat rotation error