fix a bug in symlinking