Fixes inverted slicing check