Fix bug for changing language in edit mode.