Fixed a problem when reading the repsonse.