min code to reproduce issue