make gcc happy (ambiguous argument to min function)