Currently value for enums is calculated using a counter, but some enums may have explicit value, so counter may assign wrong numbers to them. This should solve the problem: ```c++ en->getInitVal()->getLimitedValue() ```