Membership charging twice

When a coupon used in Membership. Stripe is charging the user twice, it creates two invoices; one with a discount and second one with a full membership price.