Fixed committing transactions