fixed typo in filter initialization causing NULL pointers