fixed comparing enums