fixed a problem in which rows of replica genration table aren't inserted due to the missing insert line by mistake.