Fix errors on optional filter.