Fixed the creation of the paired.txt file