Fixed crash when injecting too many locales