Use ymax instead of ymin

Need more coffee...