Fixing closure
Finally it can run with Closure