Fixed a bug in variable assignment under closure context that also
assign to local store.