register() fails if collection name is specified

I believe it's just a typo. Anyway the fix is quite trivial.