Fixed wrong scope of this in closure.
Fixed wrong this scope.