Fix for removing all attached objects to a link and debug info