Fix bug: wrong length passed to parse_reply