added fix for safari 7