Index fixed, code now compiles