Fixed incorrect variable names.