[localization] Fixes the index bug in synchronization sequence.