Fix Symlink function

It was creating looping links