fixed bug in collated file name