Fix empty find returning index