Fix some bugs on alarm alert rotation