fix error when stopping the election on approval