Fixing indicies.