Bug fix about the updating issue of the local context.
Merge pull request #137 from msyk/fix-local-context-update-issue

Bug fix about the updating issue of the local context.