Bugfix for symlinks