Update the Collection entity and fix the collection creation bug.