Added possible fix for safari