Fix bug of auth.py