Update thread1.cpp

fix problem with saving the list files