fixed errors with multiple cards and transactinos