fix rotate value