Fixed double flash after getting through alert window.