Fixed error in rotate for O shape