Fixed reference to undefined variable.