I'm attaching a patch which is supposed to resolve the problem (tested on top of test-case archive - worked fine for me).
I'm attaching a patch which is supposed to resolve the problem (tested on top of test-case archive - worked fine for me).