Fix the const_foreach.