fix for safari browser.