add fixes to mongo migration