Fix issue due to rotate device orientation.