fix a bug on ie6, so main view can be showed on ie6