Corrected undefined variable.