fix undefined locale