Fixed a bug that would result in incomplete commit graph when some
changes are already extracted