Fix a lack of pattern in the function of read-and-repair