fix a small bug in enumeration and interface