fixed copy bug
added tl_undo support