fixed no units array error
handle AA units right