See:
and this thread:
maybe of help, I tried to understand the issues, and make a PR, I probably need to reread (what I wrote), posting in case helpful.