shaohua's fix for safari: 0.76