improved commit behavior.
fixed commit errors.