fix bug in enum