Corrected incorrect variable names