Fix error where user's exchange-linked flag was not unset when loans are paid off