fix safari's error