fix bug:copy_head pointer arithmetic error