fixed alignmentgauge drawpie logic