Fixing index mistake