fix for mongodb