Bug with an incorrect variable name