Fix get right language index in texts