fixed bad linking