fix collection creation bug