fixed sendRequest bug