Fixed some proof of work checks