Solved the case of the undefined variable