change to maintain compatibility with old versions of Firefox