[translate]: Fixed some mongodb-related bugs which appeared when deploying