correct bug in collection creation