fix bugs in line/char/token filter due to latest changes