Fixed for_each