Fix localization bug in frontend