fixed multi-file conversion bug