fixing the response from the server