fixed collection issues with documents
Merge pull request #15 from jsajnani79/yifan

fixed collection issues with documents