fixing missing return on sindex not found