fixes #1181 so that the diagram labels update