prevent double-shuffling or double-clearing, fixes issue #6