fix device node hierarchy