fixed a linking bug