Change the order,So it can set the next sequence in callback

Change the order,So it can set the next sequence in callback