Fix reference to undefined variable.