Added code to generate correct label when maximum value is set as star.