Fixed all known Firefox errors
Possible fix of Firefox 31