fixed the weird firefox bug