Fixes rotation issues