machine: fix scope allocation