Fixed a redundency in filter.