Currently, this snippet selects the first fund in the list of associated funds, instead of the fund that was actually selected by the donor.
It works for admin-selected funds, but not when the donor is given a choice of fund.