fixed an error in authz.py