bug fix for firefox