fix enum support bug