fix active auth bug