Added explicit commit() call