fixed rotation issue with squares