fix an issue with fetching unsafe variables from negative part of aggregates body