fixed file linking bug