It seems to me this block should be removed and instead put later in the `match max` block.