Fix slicing order error