fixed link delete bug #303