Index out of range past level 5 - error fix