fix incorrect processing the response