fix register_policy globally