fixed bug where tempFilter and filter were referencing same object