fix Issue 11447 - Closure provide bogus values

https://d.puremagic.com/issues/show_bug.cgi?id=11447