fix safari support