apply a fix from https://jira.mongodb.org/browse/SERVER-2114