fixed some link errors