Fix vertical maximum error