gbp: fix contract rule handling