fixed problem with vectors in selection of top candidate