set correct error with translation