Fixing for iPad by checking for flash