Fixing flash in iOS7 and iOS8.