candidate ranking bug fixed