Look for the max-precedence, not min-prcedence

Naming oops