fix for #372
Merge pull request #373 from waterbearlang/372_broken_in_firefox

fix for #372