fix layout issue on iOS8 beta