fixed bug with broken symlinks