fix for Safari and Firefox