fix bugs on eval/opt-thred-filter.pl