Fixed iOS8 orientation bug