fix handle_deliver_sm for old transport protocol