fix pruneIncomingLink