Fixed a bug in create