fix Type Error when delete a collection
Merge pull request #44 from poga/master

fix TypeError when deleting a collection