fix a bug caused by symlink