[type check] fixed a bug when parsing filters