bug fix for candidate not found