added Safari workaround