fixes rotation issue