Fixed a view context id generation algorithm bug