fixed crash in transaction problem