fix crash when request was successful