Fix for firefox (hopefully)