Fixed the output in enumeration