Fixed lang detection