Fixed the program hanging problem due to incorrect file numbering