How to correct the sequential number order for the selected files