This isn't your fault, but usually we try to avoid defining specific magic values for enums. I checked and didn't see anywhere where the specific 0 and 1 values are used, so I would suggest rewriting the enum without the magic values.