Found bug causing commissions and payment success.. not to execute supporter-amazon.php

I found a problem in the PaymentSuccess everthing after supporter_extend() call was not being executed.

Original
case 'PaymentSuccess':
// case: successful payment
list($bid, $period, $amount, $type, $stamp) = explode('_', $_POST['referenceId']);
supporter_extend($bid, $period, 'Amazon');
$note = date('Y-m-d: ').'Amazon '.$type.' payment by '.$_POST['paymentMethod'].' received and applied.';
supporter_update_note($bid, $note);

//if single payment update stats
if ($type=='single')
supporter_signup_stats($bid, 'single', 'signup', time());

// Added for affiliate system link
do_action('supporter_payment_processed', $bid, $amount, $period);
break;

Updated to the below and the problem seems resolved. I haven't gone through to see what is killing it at the extend code.
the final note seems correct now
"2010-10-21: Amazon recurring payment by CC received and applied."

case 'PaymentSuccess':
// case: successful payment
list($bid, $period, $amount, $type, $stamp) = explode('_', $_POST['referenceId']);

//if single payment update stats
if ($type=='single'){
supporter_signup_stats($bid, 'single', 'signup', time());}

// Added for affiliate system link
do_action('supporter_payment_processed', $bid, $amount, $period);

$note = date('Y-m-d: ').'Amazon '.$type.' payment by '.$_POST['paymentMethod'].' received and applied.';
supporter_update_note($bid, $note);
supporter_extend($bid, $period, 'Amazon');
break;

I would attach the file but. It does not seem to be a option.