fix entries duration bug when committing