fixed collection issues with documents

pulling in changes