Fixed issue with translation data when using optimizer