Fix bug with auth