fix rotation for ios 5