Fix randomization and padding of translations.