fixed error, stoped unfolder when there are aggregates