Fix problem with filter initialization