client: fix getting the response