fix index mistake