there exist bug in KL algorithm