fixed lang autodetect bug2