Fixed rotation bug in history view.