Bug fix: delete links