Fixing rotation problem.