fix invalid links