fix #145 filter does not respect blackbox property

@zimme asked for a PR for #145 so I have submitted it. I did not know if should go to master or devel so sorry if this is wrong.