fix safari issue