According to this link California does not allow Canadian retirement accounts to grow on a tax-deferred basis. This includes the annual income distributions (interest and dividends) and realized capital gains inside Canadian registered plans.
Since this the case, it sounds like they determined the overall realized capital gains and losses, resulted in a capital gain. Even if one the accounts resulted in a capital loss, that was used to offset the gains in other accounts thus was factored in the overall realized capital gains amount.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"