Fixes for pool mining