fix Issue 12506 - Wrongly private lambda to define global immutable array