another fix for #25896
fix warning reg. unused variable