Issue #3192: fix some bugs for releasing v2.2.1
Issue #3192: reset render mode value to default value.
Merge pull request #238 from dingpinglv/Iss3192_FixBugsForReleaseV2.2.1

Issue #3192: fix some bugs for releasing v2.2.1