Fixed linking bug