corrected rows while gathering from threads