Fix bug with index out of scope for Localization main VM.