Hello. > The attached patch is completely untested, > please check if it works. I think I have > completely preserved the logic of your patch, > but who knows... Yes, it is still completely untested but contains one bug less than the previous one:) Grigory, please see if this one works.