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.
OK, I don't think we're dealing with just orphans here ---- I mentioned that I thought some of my stakes were sticking, but no ---- they stick fofr a little while and then turn grey and become unconfirmed. Every single stake that has minted for the past 7 days. Here are screenshots of what I'm dealing with ---- is this normal? I'm receiving no confirmed stakes for keeping my wallet open for most hours of the day for the past week:
The first image shows the current version ---- those "accepted" mints will get greyed out within the next few hours or the next time I close & re-open the wallet --- that has been the trend for every single other stake that has minted:

Next, we have the rest of the stakes that have gone from confirmed to unconfirmed/orphaned over the past week. Note that there are NO accepted & finalized ones ---- no successful stakes:






Something really doesn't seem right here --- this is with currently 8mil in wallet.