copy buf -> iv problem (need fix)