Fix bug in paypal handler