bug fix

The successful response is [ok 1]. So 'len(resp)' should be '2' instead of '1'.