been made, then in that case the court having jurisdiction shall appoint a trustee to act in his stead, and pay over to the heirs or assigns of the said Simmons such profits as he would have been entitled to after paying said costs and expenditures.'