Fix for chrome/safari