fix link generation (headlock)