Fixed outofbunds index