fix safari problem