fix link resolution (related to #529)