Work around firefox's selenium driver bug