fix output rotate value