fixes firefox bug