patched discard bug