Further bugs within transaction.php fixed