Fix bugs related to slice selection

No match.