Correct undefined variable