fix argument parsing in filter