fix bug on preprocessing module