fix bug on checkif processed