Fixed a bug with the linking of files