Fixes zero-weight bug for simple sampling w/ replacement