handle missing indexes element