Fixed authentication loop. This would happen when authentication expires.