Converting legacy FEniCS code to FEniCSx causes issue

Great. looking forward to the new examples.