issue #19291: bugfix for global functors