Issue #112 again...

I will have to revert these commits once a real solution arrives.
sumk_discrete: workaround for issue #115