Fix bug causing bad auth urls