bugfix in phaseDiagram