fix deleting old records for retentionPolicy=LIVE