fix unlink/diff problem