fix set on compare-function index