fixed bug on enum processing