fix bug Pretreatment