Fix issue #6 crash on collection rename
Merge pull request #15 from rogerz/bug-rename-collection

Fix issue #6 crash on collection rename