Fixed unknow locale bug