bug fix for firefox issue