fix issue with infinite symlinks