Fix mistake in search for first deepest child