fix enum comparison