fixing binding for enums