Fix unlink issue