fix rotate the display BUG