annotations: fix error on mouseup, defining links properely