Fixed a problem with bad authentication