fixed autocommit issue