fix bugs for long number file names