if you can isolate the problem and fix it, then feel free to make a pull request to the github. although i will save you some time and explain that there is no error, your stakes were just being orphaned. orphaning is a natural process in the blockchain growing.
Is it accurate that every single one of my stakes from the first week of staking were orphaned? Only yesterday did a few seem to stick --- glad to hear this is normal, but I'd be curious to hear about the staking performance of others. You can see the # of orphans I was producing from the pic I posted ---- that's normal, right?
We all have problems at the moment with the blockchain...and staking. I myself am not staking at the moment but will start again when there is a new wallet. I won't mis any coin that I could have staked. At the end it will be exactly the same.