invalid filter

should be checking length of current data, not total length