a fix that might actually work (and a test to prove it)

the test nondeterministically fails without the fix