Fix unlink tmp file