cid.py: fix a bug in func MergeByTxt that filter condition