Fix issue counting the same commits multiple times