thank you this is really useful. I don't know how this could happen but I have implemented a fix (which might not work).
Thank you for taking a look. Unfortunately I get the same error.