fixed generate enum