Fix typo causing wrong yMax