Fix error not recognizing messages-locale setting