Workaround for iOS8.