FIx a bug between media orientation and iOS