bugfix in link contract enforcement