fix sendRequest