Fix the unlink issue