Correct x min/max