Fixed rotation bug in frames displayed