Fix firefox bug