Hotfix for mining scanner oldcode

Blame ergo

Thanks @MrPerson