fixing unsigned in enum comparison