fix iOS8 orientation bug