fix bug in extends-protocol
fix typo in decode-str