Fix enum comparing