Hashi: Light: Demo fix bugs

Fixed a bug that sometimes crashes due to deleting a line. Fixed a bug that caused some connection display exceptions due to undo operation.