Bugfix in auth