fix to enum generation