fixed issue with undefined options.name in collection.create() api