fix diagrams-builder-ps to work with lens changes