fix bug on autochecking