fix a bug with symlinking the wrong file