Fix NONE reference in wfgen.