get a nasty index out of bounds

don't know where to check