issue #5685: fix bugs of create functions