issue #5685: fix bugs of create functions
Merge pull request #2049 from joshuastray/ccui_create_bug

issue #5685: fix bugs of create functions