Fixes rotation issues.