There was a bug in filter. When an input was missing the index of outputs was not incremented so the decisions of following input were redirected to a wrong output. Also, the creation of the output is now avoided. Tagging @fpastore @sgeorge