Fix bug in "/api/:protocol/translate"