Fixed transaction history bug

Not all transactions were fetched due to wrong data clause in
transaction model.