Fixing hasFlash.