fix incorrect ipn handeling