small bug fix in yank