fix EnumerateNext in Singular.cc