Mining startup crash fix.