fix bug, slice initial len should be 0