Revise algorithm for Jig filter involving undefined fields (Issue #230)