Fixed bug with auth