fixed mode filter for declarative model. Was not checking on connections
and features correctly.