fixed waiting for auth bug