Fix lang for agent error. thanks Guillaume Rousse