Fix minimum operand bug