smd_tty: fix wrong deleting