fixed clustering bug

indexOf(model, true) does not work for sorted collections