Investors & landlords

it could be because of purchase and sales date some shares are subject to wash sale rules.  the  disallowed loss would be added to the replacement shares. since you say all shares have been sold (and never replaced) you get the previous disallowed loss