issue #23086: avoid hanging on foundation