fix safari detection