Fixed the SOP rotation bug.