Fixed bug: fail if locale is not supported