fix a reference to an enum.