Fixed a bug where initViewContext do not add control to ViewContext object