fixed #62 it wasn't an atlas rotation bug, but an if-statement was missing.