fix unlinking