index was messed up