Fixed incorrect digital ports templates
Fixed links restoration after deletion undo