FIX a bug caused by reuse of slice