fixed previous transaction behavior