fixed null pointer in filter.h