Fixed delete link bugs