fix enum problems