fixed buggy rotation