fix enum with key block