Add rotate bar with some bugs.