fix screen rotation bug