Fix register() with specified collection name