fix the response saving