fix bug about candidate