fixes mongosoup/rmongodb#46
fixes mongosoup/rmongodb#20