Fix naive bug when reducing attribtuefilter