fix commitcount is infinity