bug fix for safari