Fixed clenshaw curtis iterate level function.