fixes the firefox bug