fix safari nav bug