bug fix

batch ordering wrong.