fix for mongo adapter