Fix mismatching enumeration type usage