Dealt with rotation change