Bug fix about the updating issue of the local context.