fixed issue related to https://jira.mongodb.org/browse/SERVER-14623
Merge pull request #2 from jimoleary/master

fixed issue related to https://jira.mongodb.org/browse/SERVER-14623