Fix #448 history/yank save problem