fixed typo and returned-data parsing error