fix a bug in recordFilter