fixed coverity scan build error in enumeration. scan at 100%