fixed authentication hang