Fixed bug with relative path key appearing multiple times in the material path.