flip card fix for safari