fix a bug related to single relation in enumeration