Fixed bug in create