Made it work for firefox