Fixed a bug in context version changing.