bug fix empty_doc filter