restartMining fix bug