Fix Closure Cannot store in Dictionary problem