Fix bug about setting rotation callback

No match.