Fix name reference for expected variable