fix bug where fidning without index would crash