fixing a auto_commit statement