fixed cannot operate on dangling symlink