fix enum scopes for filtering to work