Using depth=n in wp_list_pages

depth=n2 should be depth=2. n is just a “placeholder” and should be replaced by the actual integer value of your choice