Fix inf-max 2 and 3