fix bug in firefox
Merge pull request #1137 from jygaulier/fix-PHRAS-65

 fix bug in firefox