Actually, I think it is. It sounds like they're clawing back the investment profit, but it is likely those profits were invested in something else which also earned a profit. That additional profit is yours to keep as far as I can tell.
Alternatively, they could have spent the original profit or lost it on another investment... In other words the end result was similar to a loan. I'm curious whether the claw-back included a risk-free interest rate.