ERROR: PeerMiner : generated block is stale

Found this in the nud log. Maybe I should ask it here since it seems to be from peercoin code: Exactly how does my minter get a stale block? Is there anything I can do to minimize it?

https://bitbucket.org/JordanLeePeershares/nubit/src/4d39cdeef855a0958a209b210b41967ff057986d/src/main.cpp?at=master#cl-4598

if (pblock->hashPrevBlock != hashBestChain) return error("PeerMiner : generated block is stale");

Looks like your previous block is not the best chain anymore.

Thanks. You are right. There was a reorg just when the minting happened.