correct minor error on slicing