added hack for safari browsers