bug fix for chrome