fix small miner bugs