fix for latest mongodb