fix auth when response from server is nil