fix enum generation