linking bug fixed