fix registering of collections