solved rotation bug