fix bugs in create