Fix serialization order of actions that triggered a move