fix saving last commit time bug