fixed a auto commit issue