fixed a document filter state bug