fixed minor linking bug