fix enum issues