fix document filter problem