Workaround for mongodb.