fix bugs in sequence_move() function