Fixed overlooked variable from previous renaming

line 51 changed ORD to index