Fix some bugs with the confluence filter.