fix commit timing bug