fix link errors