fix enum warning