Fixed bug in create command