fix a bug that occurred in some cases when uploading multiple languages at once