fix error when collection name contains a dot
Merge pull request #394 from qraynaud/master

fix error when collection name contains a dot