fixed lang detection integration array exception