fixed halo update order and buffer packing indices