bugs in parser for filter