fix bug for floating pl and exceed max count