Fixing bad variable in code validation