Truncate the packet according to empty signal