fix problems with empty/corrupt filters