fix for Firefox
Merge pull request #271 from timfel/master

Fix for Firefox