Fixed autocommit bug, hopefully