Fixed error with locale disabled