The tooth is checked at the later visit and when all the infection has cleared the tooth is permanently filled

Please fix the punctuation.
The tooth is checked at the later visit and when all the infection has cleared, the tooth is permanently filled.