fix the firefox bug