fix transaction check