Removed e.clear() in scoring_function::clear()