fixed bug in candidate