Fixed a problem with auth