Fix undefined index_name notice