Fixes shuffle-patch in previous code by making sure that the array of weights handed off to the selection function actually equals one.
Fixes shuffle-patch in previous code by making sure that the array of weights handed off to the selection function actually equals one.