fix those out-of-index errors

they get annoying