Fix enum iteration