fix for safari for example