Added initialization of a stupid index, may have fixed it.