Fix subscription code check