minor fix to sessions clearing and transaction complete