Fix typo in copy for IOBuffer