fix creator generation for enum attributes