Remove reference to undefined