fix an oversight in applying graph max to labels