Filter: filter_initialized flag now gets set appropriately. Fixes #668