add updating MaxInstanceNum when receiving accept and commit