Fix coupon code activation

Fixes #3363
Related to #3222