fixed redundant records issue.