bug in kill buffer copy