fix response check (issue #7)