fix "gini index search" bug