Fix wrong slicing