slice bug fixed