fixes global links bugs