Fix the MAX_CURVELIST definition