Patch API and update Tools page

Fix API when hashrate = 0