fix kernel scope in example restraint