Yet another fix to the dimensiondiagram nullpointerexception