Fix for firefox weirdness