fix rotation issue