fix for safari error