Bug fix: Commit when autocommit is enabled