fixed an issue with static evaluation of enum2int