Fixed bug with auth.