fix index syntax