workaround for firefox bug