Fixed an inconsistent variable name which prevented program from compiling.