fixed problem with duplicates in aexpr