fix keepAuth