fix grid order.