fix another slice bug