fixing minting for resources below the top level