Fix for Safari and Firefox.