#343 wrongly placed candidates.clear() causes too many error messages