Fix for the firefox error noted by @kyleabeauchamp