Workaround for bug 844184

(see also https://bugzilla.mozilla.org/show_bug.cgi?id=844184)