Enum not working with generate-all