Fix reference to undefined