Added a fix for firefox