there are tests in the backend to make sure that all user shares are zero, so its odd that there are some left in the frontend...maybe the issue is somewhere in how the portfolioUpdates are being processed
add a test in the backend that the system balance before last repayment + system Update comes out at zero