correction in filter generation