fixed problem with autocommit false