Fix coupon update code check

This PR resolves the issue #907