Fixed a bug in the creation script causing problems with duplicate items, etc.