fix last records that are valid but not in pres table