Fix problem in Safari