fix length of filter iterator