Changes root-type to type-root