Fixed errors with symlinks