// Fix undefined index