Fixed file linking bug