fix enum_type to variant