correct the error translate in enum