Fixes bug where next party could not be found after a party is updated