Fix bug. Transactions are saved when no activities are being processed