fix bugs in create/set container