Fixed a bug in LastIndexOfSlice re 'end'