fixing unlinking