fixed bug in xmp2tif