Fixed an undefined variable.