fixed wrong usage of foreach_set macro