Fixed bug in Safari