Fix possible crashes after changing the state of "Use sequential order"