fix commit count update