fix for firefox issues