fixed weird rotation transformation