Fix enumeration warning