Jan-Willem Gmelig Meyling could you open another issue and provide a test case?
Or even better a PR
Thanks!