Fixed exception issue with genericfilter examples