correct link errors