Fixed bug where xmp files were not properly processed