fix rotation bug (maybe?)