fix hardlink issues