Fixed memory corruption in subcircuit miner