handle empty Index