fix the max quad curature