I fixed the bugs in reading responses