Massive fix for firefox bug.