Fix transferring inventory from prims to agent inventory