fix candidate selection