A method of correcting an actual limit value of a sensor signal of an acceleration pedal position sensor, wherein above the limit value a specific state of the acceleration pedal position sensor is recognized, the method comprising the steps of: - determining a new limit value of the acceleration pedal position sensor, where the new limit value of the acceleration pedal position sensor is determined by: - measuring and storing timewisely actual sensor values in a first ring buffer; - determining an average limit value by averaging said stored actual sensor values in said first ring buffer; - setting the new limit value to the average limit value of the acceleration pedal position sensor if said average limit value of the sensor is greater than the actual limit value; - determining a stability criteria to decide whether the actual limit value is corrected with said new limit value, wherein determining the stability criteria comprises the following steps: - Calculating difference values, wherein each difference value is a difference between an actual sensor value and a previous actual sensor value of the timewisely measured actual sensor values; - Storing the difference values of said sensor values in a second ring buffer; - Calculating an average difference value of the stored difference values; - Determining an absolute difference of the sensor value over said average difference values by absolute value calculating means; - Comparing said absolute difference of the sensor value with a predetermined stability threshold value; and - Setting the stability criteria when the absolute difference of the sensor value is smaller than or equal to the predetermined stability threshold value or otherwise unsetting the stability criteria; and - approaching the actual limit value to the new limit value when the conditions are fulfilled to correct the actual limit value for said acceleration pedal position sensor. - determining a new limit value of the acceleration pedal position sensor, where the new limit value of the acceleration pedal position sensor is determined by: - measuring and storing timewisely actual sensor values in a first ring buffer; - determining an average limit value by averaging said stored actual sensor values in said first ring buffer; - setting the new limit value to the average limit value of the acceleration pedal position sensor if said average limit value of the sensor is greater than the actual limit value; - measuring and storing timewisely actual sensor values in a first ring buffer; - determining an average limit value by averaging said stored actual sensor values in said first ring buffer; - setting the new limit value to the average limit value of the acceleration pedal position sensor if said average limit value of the sensor is greater than the actual limit value; - determining a stability criteria to decide whether the actual limit value is corrected with said new limit value, wherein determining the stability criteria comprises the following steps: - Calculating difference values, wherein each difference value is a difference between an actual sensor value and a previous actual sensor value of the timewisely measured actual sensor values; - Storing the difference values of said sensor values in a second ring buffer; - Calculating an average difference value of the stored difference values; - Determining an absolute difference of the sensor value over said average difference values by absolute value calculating means; - Comparing said absolute difference of the sensor value with a predetermined stability threshold value; and - Setting the stability criteria when the absolute difference of the sensor value is smaller than or equal to the predetermined stability threshold value or otherwise unsetting the stability criteria; and - Calculating difference values, wherein each difference value is a difference between an actual sensor value and a previous actual sensor value of the timewisely measured actual sensor values; - Storing the difference values of said sensor values in a second ring buffer; - Calculating an average difference value of the stored difference values; - Determining an absolute difference of the sensor value over said average difference values by absolute value calculating means; - Comparing said absolute difference of the sensor value with a predetermined stability threshold value; and - Setting the stability criteria when the absolute difference of the sensor value is smaller than or equal to the predetermined stability threshold value or otherwise unsetting the stability criteria; and - approaching the actual limit value to the new limit value when the conditions are fulfilled to correct the actual limit value for said acceleration pedal position sensor.