Fixes types in errors causing i18next to crash