Fix overlay view in iOS8.