fix enum instantiation