Fixed incorrect rotation calculation