fixes variable name in collect_old_leader_search