fix wrong typed links