Fixed bug in create.