fix Issue 11447 - Closure provide bogus values

Another fix way for the multiple definition error.