Fix bug auth caching