Fixed incorrect variable names