Fixed a bug causing sums to sometimes 'jump into' one of their possibilities. Updated an example.