If any such insolvent or his legal representative shall satisfy the undisputed claims of his creditors, and shall give security, to be approved by the court, to pay those which are disputed, the court shall order his estate and effects, not sold, to be restored to him or his legal representatives; and he shall, by virtue of such order, be seized and possessed thereof as of his former estate and title thereto; and if, upon the final settlement of accounts by the assignee or receiver, there shall be a surplus, after payment of all the claims presented and allowed, the same shall be paid to such insolvent or his legal representatives.
39 P.S. § 103