fix autocommit problem